home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / kcl / akcl / akcl1615.lha / h / sun4.h < prev    next >
C/C++ Source or Header  |  1991-07-30  |  1KB  |  56 lines

  1. #define SUN4
  2.   
  3. #include "bsd.h"
  4. #include "sparc.h"
  5.  
  6. #define ADDITIONAL_FEATURES \
  7.              ADD_FEATURE("SUN"); \
  8.                ADD_FEATURE("SPARC")
  9.  
  10.  
  11. #define SPARC
  12. #define    IEEEFLOAT
  13.   
  14. #define USE_C_EXTENDED_DIV
  15.   
  16. /* setjmp does not lay down the other register windows registers,
  17.    and so we must recurse some to make sure that all registers are
  18.    forced onto the stack.
  19. */   
  20. #define N_RECURSION_REQD 8
  21.   
  22. #define DATA_BEGIN (char *)N_DATADDR(header)
  23.  
  24. #define N_RELOFF N_TRELOFF
  25.  
  26. #define RELOC_FILE "rel_sun4.c"
  27.  
  28. /* width of page size that can be memorprotected log2(getpagesize()) */
  29.    
  30. #define PAGEWIDTH 12 
  31.  
  32.  
  33.  
  34. #define reloc  reloc_info_sparc
  35.  
  36. /* in release 4.0 it is SIGSEGV, and release 4.1 it is SIGBUS */
  37. #define INSTALL_MPROTECT_HANDLER (signal(SIGSEGV, memprotect_handler),\
  38.                   signal(SIGBUS, memprotect_handler))
  39.  
  40. #include "sparc.h"
  41.  
  42. /* Begin for cmpinclude */
  43. #ifndef __GNUC__
  44. #define HAVE_ALLOCA
  45. #include <alloca.h>
  46. #endif
  47.  /* If can mprotect pages and so selective gc will work */
  48. #define SGC  
  49.  
  50. /* End for cmpinclude */
  51.  
  52. /* Sun 4.1 needs to have some cached yp stuff undone at save time */
  53.  
  54. #define HAVE_YP_UNBIND
  55.  
  56.